const hello = require('./hello.js'); // CommonJS

console.log(hello());

document.querySelector('#root').appendChild(hello());